package vista;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import controlador.Sistema;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Menu extends javax.swing.JFrame {
	private JButton btnAltaProve;
	private JButton btnListarCant;
	private JButton btnCancelar;
	private JButton btnListarProd;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Menu inst = new Menu();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	public Menu() {
		
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Sistema Proveedores");
			getContentPane().setLayout(null);
			{
				btnAltaProve = new JButton();
				getContentPane().add(btnAltaProve);
				btnAltaProve.setText("Alta de Proveedor");
				btnAltaProve.setBounds(86, 37, 234, 30);
				btnAltaProve.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						AltaProve ap = new AltaProve();
						ap.setVisible(true);
						ap.setLocationRelativeTo(null);
					}
				});
			}
			{
				btnListarProd = new JButton();
				getContentPane().add(btnListarProd);
				btnListarProd.setText("Listar Productos de Proveedor");
				btnListarProd.setBounds(86, 85, 234, 30);
				btnListarProd.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						IngresoListarProductosProve lp = new IngresoListarProductosProve();
						lp.setVisible(true);
						lp.setLocationRelativeTo(null);
					}
				});
			}
			{
				btnListarCant = new JButton();
				getContentPane().add(btnListarCant);
				btnListarCant.setText("Listar Cant Productos Proveedor");
				btnListarCant.setBounds(86, 139, 234, 30);
				btnListarCant.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						IngresoListarCant i = new IngresoListarCant();
						i.setVisible(true);
						i.setLocationRelativeTo(null);
					}
				});
			}
			{
				btnCancelar = new JButton();
				getContentPane().add(btnCancelar);
				btnCancelar.setText("Cancelar");
				btnCancelar.setBounds(86, 202, 234, 30);
				btnCancelar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
					}
				});
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
